package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.NewsAuthDto;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;

/**
 * @author JianKang
 * @create 2023-10-20 17:21
 */
public interface WmNewsService extends IService<WmNews> {
    ResponseResult findAll(WmNewsPageReqDto dto);

    ResponseResult submitNews(WmNewsDto dto);

    ResponseResult getOneNew(Integer newsId);

    ResponseResult downOrUp(WmNewsDto wmNewsDto);

    ResponseResult delNews(Integer newsId);

    ResponseResult listVo(NewsAuthDto dto);

    ResponseResult oneVo(Integer id);

    ResponseResult authFail(NewsAuthDto dto);

    ResponseResult authPass(NewsAuthDto dto);
}
